from google.appengine.api import users
import models


class AddUserToRequestMiddleware(object):
    def process_request(self, request):
        request.guser = users.get_current_user()
        if request.guser:
            request.user = models.User.get_user_for_guser(request.guser)
        #request.user_is_admin = users.is_current_user_admin()
